package com.kplan.plan.service;

import java.util.List;

import com.kplan.plan.dao.BoardDao;
import com.kplan.plan.dto.BoardDto;
import com.kplan.plan.dto.BoardListDto;

public class BoardService {

	private static BoardService boardService;
	static{
		boardService = new BoardService();
	}
	private BoardService(){}
	
	public static BoardService getInstance(){
		return boardService;
	}
	
	public List<BoardListDto> boardlist(){
		return BoardDao.getInstance().boardlist();
	}
	
	public List<BoardDto> board(String bcode){
		return BoardDao.getInstance().board(bcode);
	}
	
}
